package com.quan.common.base.pojo;

import java.io.File;
import java.io.Serializable;

import org.apache.http.Header;

public class HttpResult implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	private Integer statusCode;
	
	private Boolean status ;
	
    private String content;
    
    private String message ;
    
    private Header[] headers ;
    
    private File file ;
    
    
	public HttpResult(Boolean status) {
		super();
		this.status = status;
	}

	public HttpResult(Boolean status, Header[] headers, File file) {
		super();
		this.status = status;
		this.headers = headers;
		this.file = file;
	}

	public HttpResult(Boolean status, Header[] headers) {
		super();
		this.status = status;
		this.headers = headers;
	}

	public HttpResult(Boolean status, String message) {
		super();
		this.status = status;
		this.message = message;
	}

	public HttpResult(Integer statusCode, String content) {
		super();
		this.statusCode = statusCode;
		this.content = content;
	}

	public HttpResult(Integer statusCode, Boolean status, String content, String message) {
		super();
		this.statusCode = statusCode;
		this.status = status;
		this.content = content;
		this.message = message;
	}

	public HttpResult(Integer statusCode, Boolean status, String content, String message, Header[] headers) {
		super();
		this.statusCode = statusCode;
		this.status = status;
		this.content = content;
		this.message = message;
		this.headers = headers;
	}

	public HttpResult(Integer statusCode, Boolean status, String content, String message, Header[] headers, File file) {
		super();
		this.statusCode = statusCode;
		this.status = status;
		this.content = content;
		this.message = message;
		this.headers = headers;
		this.file = file;
	}

	public Integer getStatusCode() {
		return statusCode;
	}

	public void setStatusCode(Integer statusCode) {
		this.statusCode = statusCode;
	}

	public Boolean getStatus() {
		return status;
	}

	public void setStatus(Boolean status) {
		this.status = status;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Header[] getHeaders() {
		return headers;
	}

	public void setHeaders(Header[] headers) {
		this.headers = headers;
	}

	public File getFile() {
		return file;
	}

	public void setFile(File file) {
		this.file = file;
	}

	@Override
	public String toString() {
		return "HttpResult [statusCode=" + statusCode + ", status=" + status + ", content=" + content + ", message=" + message + "]";
	}
    

}
